package com.fjp.heartguard.viewmodel

import androidx.lifecycle.MutableLiveData
import com.fjp.heartguard.app.base.HTBaseViewModel
import com.fjp.heartguard.app.data.bean.ReportsHistory
import com.fjp.heartguard.app.network.HttpRequestCoroutine
import me.hgj.jetpackmvvm.ext.request
import me.hgj.jetpackmvvm.state.ResultState

/**
 *Author:Mr'x
 *Time:2025/1/19
 *Description:
 */
class HistoryReportViewModel : HTBaseViewModel() {

    var history = MutableLiveData<ResultState<ArrayList<ReportsHistory>>>()
    fun getolderAllQuestionnaire(olderId: Int, dataType: Int) {
        request({
            HttpRequestCoroutine.getolderAllQuestionnaire(olderId, dataType)
        }, history, false)

    }
}